package com.cqd.entity;

import lombok.Data;

import javax.persistence.*;

@Table(name = "t_job")
@Entity
@Data
public class Job {

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "jname")
    private String jname;

    @Column(name = "sid")
    private Long sid;
    @OneToOne(cascade = CascadeType.ALL)
    @JoinColumn(
            name = "sid",
            referencedColumnName = "id",
            insertable = false,updatable = false
    )
    private Stus stus;
}
